package com.app.partner.service;

import com.app.partner.mapper.UserMapper;
import com.app.partner.mapper.pinglunMapper;
import com.app.partner.model.User;
import com.app.partner.model.pinglun;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.List;

@Service("pinglunServiceImpl")
@EnableTransactionManagement
public class pinglunServiceImpl implements pinglunService{
    @Autowired
    private pinglunMapper pinglunMapper;


    @Override
    public List <pinglun> findAll() throws Exception {
        return pinglunMapper.findAll();
    }

    @Override
    public void save(String plentername, String plcontent, String nowTime) {
        pinglunMapper.save(plentername, plcontent, nowTime);
    }


}
